package com.easylinkin.linkappapi.progress.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 进度预警设置
 * </p>
 *
 * @author zhengwen
 * @since 2023-11-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("app_progress_warn_config")
public class ProgressWarnConfig extends Model<ProgressWarnConfig> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键，自增
     */
    @TableId(value = "id_", type = IdType.AUTO)
    private Long id;

    /**
     * 租户id
     */
    @TableField("tenant_id_")
    private String tenantId;

    /**
     * 完成时下限
     */
    @TableField("finish_less_")
    private Integer finishLess;

    /**
     * 完成时上限
     */
    @TableField("finish_more_")
    private Integer finishMore;

    /**
     * 未完成时下限
     */
    @TableField("undone_less_")
    private Integer undoneLess;

    /**
     * 未完成时上限
     */
    @TableField("undone_more_")
    private Integer undoneMore;

    /**
     * 父级完成时下限
     */
    @TableField("parent_finish_less_")
    private Integer parentFinishLess;

    /**
     * 父级完成时上限
     */
    @TableField("parent_finish_more_")
    private Integer parentFinishMore;

    /**
     * 父级未完成时下限
     */
    @TableField("parent_undone_less_")
    private Integer parentUndoneLess;

    /**
     * 父级未完成时上限
     */
    @TableField("parent_undone_more_")
    private Integer parentUndoneMore;

    /**
     * 创建人
     */
    @TableField("creator_")
    private String creator;

    /**
     * 创建时间
     */
    @TableField("create_time_")
    private Date createTime;

    /**
     * 修改人
     */
    @TableField("modifier_")
    private String modifier;

    /**
     * 修改时间
     */
    @TableField("modify_time_")
    private Date modifyTime;

    /**
     * 是否删除，0否，1是
     */
    @TableField("deleted_")
    @TableLogic(value = "0", delval = "1")
    private Integer deleted;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
